/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: 与AI设备(D芯片)相关dnn,runtime,drv等接口适配
 * Author: ligang
 * Create: 2022-02-24
 */

#include <adapter_error_manager.h>

ErrContext hrtErrMGetErrorContext(void)
{
#ifndef HCCD
    return ErrorManager::GetInstance().GetErrorManagerContext();
#else
    ErrContext tmp;
    return tmp;
#endif
}

void hrtErrMSetErrorContext(ErrContext error_context)
{
#ifndef HCCD
    ErrorManager::GetInstance().SetErrorContext(error_context);
#endif
    return;
}